<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>二维码打印</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .container{
            /* width: 786px;
            height: 550px; */
            width: 550px;
            height: 400px;
            background-color: rgb(244, 247, 247);
            border: 2px solid rgb(159, 165, 166);
            border-radius: 5px;
            margin: 0 auto;
            display: flex;
        }
        .container-left{
            width:206px;
            padding: 20px 10px;
            box-sizing: border-box;
            border-right: 2px dashed #999;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .img{
            width: 140px;
            /* height: 218px; */
        }
        .img img{
            width: 100%;
        }
        .text li{
            padding: 10px 5px;
            margin-top: 10px;
            background: rgb(235, 237, 237)
        }
        .container-right{
            padding: 20px 0;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            /* justify-content: center; */
            align-items: center;

        }
        .QR_code{
            width: 295px;
            height: 309px;
            padding: 15px;
            box-sizing: border-box;
            border: 1px solid rgb(216, 219, 219);
            border-radius: 5px;
            background-color: #fff;
        }
        .QR_code img{
           width: 100%;
           height: 100%;
        }
        .serial {
            width: 100%;
            margin-top: 20px;
            /* background-color: lightcoral; */
            border: 1px solid rgb(216, 219, 219);
            padding: 10px 0;
        }
        .serial span:first-child{
            background: rgb(235, 237, 237);
            padding:10px 15px;
        }
        .serial span:last-child{
            padding:10px;
        }

    </style>
</head>
<body>
    <div class="container">
        <div class="container-left">
            <!-- <div class="img">
                <img src="">
            </div> -->

            <ul class="text">
                <li>名称：${productName}</li>    
                <li>规格：${productSize}</li>    
                <li>保质期：${productGuaranteePeriod}</li>    
                <li>生产日期：${productHarvestTime}</li>    
            </ul>
        </div>
        <div class="container-right">
            <div class="QR_code">
                <img src="${QRCode}">
            </div>
            <div class="serial">
                <span>ID:</span>
                <span>${productId}</span>
            </div>
        </div>
    </div>
</body>
</html>